package www.bw.com.Service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import www.bw.com.Service.MovieService;
import www.bw.com.entities.Movie;
import www.bw.com.mapper.MovieMapper;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MovieServiceImpl implements MovieService {

  @Resource
  private MovieMapper movieMapper;

  @Override
  public List<Movie> list() {
    return movieMapper.list();
  }

  @Override
  public Integer selectCount() {
    return movieMapper.selectCount();
  }
}
